//Source file: D:\\test\\com\\ce\\pms\\customer\\model\\IndividualDO.java

package com.ce.pms.customer.model;

import java.util.Date;

import javax.persistence.*;

import com.ce.pms.common.model.SysInfo;
import com.ce.pms.common.model.SysrefcodeDO;
import com.sitechasia.webx.core.model.IDomainObject;

/**
 * 实体名称:个人 关系表：CS_INDIVIDUAL
 * @author Adama Yue
 */
@Entity
@Table(name = "CS_INDIVIDUAL")
@PrimaryKeyJoinColumn(name = "INDIVIDUAL_ID")
public class IndividualDO extends ParticipantDO implements IDomainObject{

	/**
	 * 检索策略:lazy=false
	 */
	@ManyToOne(cascade={},fetch=FetchType.EAGER)
	@JoinColumn(name="ID_TYPE_ID",nullable=true)
	private IdTypeDO idType;

	@Column(name="APPELLATIVE",nullable=true,insertable=true,updatable=true,length=20)
	private String appellative;//称呼
	@ManyToOne
	@JoinColumn(name="SEX",nullable=false,insertable=true,updatable=true)
	private SysrefcodeDO sex;//性别
	@Column(name="ID_NO",nullable=true,insertable=true,updatable=true,length=36)
	private String idNumber;//证件号码
	@Column(name="EMERGENCY_MAN",nullable=true,insertable=true,updatable=true,length=30)
	private String emergencyMan;//紧急联系人
	@Column(name="EMERGENCY_PHONE",nullable=true,insertable=true,updatable=true,length=80)
	private String emergencyPhone;//紧急联系电话
	@Temporal(TemporalType.DATE)
	@Column(name="BIRTH_DATE")
	private Date birthday;//出生日期
	@Column(name="HOMEPLACE",nullable=true,insertable=true,updatable=true,length=200)
	private String homePlace;//籍贯
	@Column(name="REGISTER_PLACE",nullable=true,insertable=true,updatable=true,length=200)
	private String registerPlace;//户口所在地
	@Column(name="PROFESSION",nullable=true,insertable=true,updatable=true,length=5)
	private String profession;//职业
	@Column(name="CORPORATION",nullable=true,insertable=true,updatable=true,length=100)
	private String corporation;//单位
	@Column(name="LINK_ADDRESS",nullable=true,insertable=true,updatable=true,length=255)
	private String contactAddress;//联系地址
	@Column(name="EMAIL",nullable=true,insertable=true,updatable=true,length=50)
	private String email;//电子邮箱
	@Column(name="REGISTER_CAR",nullable=true,insertable=true,updatable=true,length=200)
	private String registerCar;//车牌状况
	@Column(name="INTEREST",nullable=true,insertable=true,updatable=true,length=200)
	private String interest;//兴趣
	@Column(name="REMARK",nullable=true,insertable=true,updatable=true,length=100)
	private String remark;//备注

	public IndividualDO() {	}
	/**
	 * mini constructor
	 * @param participantName 参与人姓名
	 * @param sysInfo 系统信息（创建，修改信息）
	 * @param sex 性别
	 * @param idType 证件类型
	 * @param idNumber 证件号码
	 */
	public IndividualDO(String participantName, SysInfo sysInfo,
			SysrefcodeDO sex, IdTypeDO idType, String idNumber) {
		super(participantName, sysInfo);
		this.sex = sex;
		this.idType = idType;
		this.idNumber = idNumber;
	}
	/**************************************************
	 * Accessors and Modifiers
	 **************************************************/
	public String getAppellative() {
		return appellative;
	}
	public void setAppellative(String appellative) {
		this.appellative = appellative;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public String getContactAddress() {
		return contactAddress;
	}
	public void setContactAddress(String contactAddress) {
		this.contactAddress = contactAddress;
	}
	public String getCorporation() {
		return corporation;
	}
	public void setCorporation(String corporation) {
		this.corporation = corporation;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getEmergencyMan() {
		return emergencyMan;
	}
	public void setEmergencyMan(String emergencyMan) {
		this.emergencyMan = emergencyMan;
	}
	public String getEmergencyPhone() {
		return emergencyPhone;
	}
	public void setEmergencyPhone(String emergencyPhone) {
		this.emergencyPhone = emergencyPhone;
	}
	public String getHomePlace() {
		return homePlace;
	}
	public void setHomePlace(String homePlace) {
		this.homePlace = homePlace;
	}
	public String getIdNumber() {
		return idNumber;
	}
	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}
	public IdTypeDO getIdType() {
		return idType;
	}
	public void setIdType(IdTypeDO idType) {
		this.idType = idType;
	}
	public String getInterest() {
		return interest;
	}
	public void setInterest(String interest) {
		this.interest = interest;
	}
	public String getProfession() {
		return profession;
	}
	public void setProfession(String profession) {
		this.profession = profession;
	}
	public String getRegisterCar() {
		return registerCar;
	}
	public void setRegisterCar(String registerCar) {
		this.registerCar = registerCar;
	}
	public String getRegisterPlace() {
		return registerPlace;
	}
	public void setRegisterPlace(String registerPlace) {
		this.registerPlace = registerPlace;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public SysrefcodeDO getSex() {
		return sex;
	}
	public void setSex(SysrefcodeDO sex) {
		this.sex = sex;
	}




}
